package _02string;

public class stringtest {
    public static void main(String[] args) {
        String s = new String("");
        s="hello";
        //for(int i=0;i<20;i++)
        //s+="hello";
        System.out.println(s);
        int n = s.indexOf("lo  ");
        System.out.println(n);
        int m = s.lastIndexOf('l');
        System.out.println(m);
        String n1 = s.substring(2);
        System.out.println(n1);
    }
}
